import { float_info_staticNode } from './cla_float_info_staticNode';

import { float_info_eventBind } from './cla_float_info_eventBind';
import { create_ListenEvent_mana } from '../../../../../global/element/Event/listenEvent_mana';
import {
  // props_win_load_float_info,
  spacename_float_info,
} from '../DataDefine/sourceData';
// import { create_winload } from '../../../../../global/win_load';

const float_info_dataManaTag = 'float_info_dataMana';

// const win_load_fi = create_winload(spacename_float_info);

class float_info_dataMana extends float_info_staticNode {
  get [Symbol.toStringTag]() {
    return float_info_dataManaTag;
  }

  constructor(props) {
    // 设定 如果是 跳转 过来的 本地 存了 float_keyVal 信息
    // let win_load_float_keyVal = win_load_fi.get_winload_key(
    //   props_win_load_float_info.float_keyVal
    // );

    // if (win_load_float_keyVal != null) {
    //   props.keyVal = win_load_float_keyVal;
    //   props.id = win_load_float_keyVal;
    // }

    super(props);

    this.float_keyVal = props.keyVal;
    console.log(this.float_keyVal);

    this.float_info_keyVal_dom.innerHTML = this.float_keyVal;
  }

  /**
   * @type {string}
   */
  float_keyVal;

  /**
   * 事件 绑定 this
   */
  eventBind = new float_info_eventBind();

  /**
   * 事件 监听管理
   */
  eventM = create_ListenEvent_mana(spacename_float_info);
}

export { float_info_dataMana };
